var api = require('../../utils/api.js');
var app = getApp();
Page({
    data: {
        list:[]
    },
    onLoad(params) {
    },
    onShow() {
        this.getallserver();
    },

    getallserver(){
        var that=this;
        
        api.get({
            url: 'index/getService',
            data: { },
            success: data => {
                that.setData({
                    list:data.data
                })
            }
        });
    },
    goapply(ret){
        console.log(ret);
        var id=ret.currentTarget.dataset.sid;

        wx.navigateTo({
          url: '/pages/comment/info?id='+id
        })


    }
    


});
